#ifndef PLAYERLAYOUT_H
#define PLAYERLAYOUT_H

#include <QWidget>
#include <vector>


class PlayerLayout
{
public:
    enum Mode
    {
        kOne = 1,
        kFour = 4,
        kNine = 9,
        kSixteen = 16
    };

    typedef std::vector< QRect >    QRectArray;

public:
    PlayerLayout();

    QRectArray calcLayout(const QRect& rect, Mode mode);

protected:
    QRectArray calcSquare(const QRect& rect, Mode mode);


};

#endif // PLAYERLAYOUT_H
